package api

import (
	"github.com/cihub/seelog"
	"github.com/gin-gonic/gin"
	"shop/config/constant"
	"shop/service"
	"shop/utils/convertutil"
	"shop/utils/result"
)

func GetShopInfo(ctx *gin.Context) {
	seelog.Debugf(convertutil.ToJsonString(ctx.Request.Header))
	result.RenderResult(ctx, result.Ok(service.GetShopInfo(convertutil.ParseInt(ctx.GetHeader(constant.ParamHeaderShopId)))))
}
